package com.ahtcm.tcmlearning.exception;


import lombok.Getter;

@Getter
public enum  ResultEnum {
    //通用异常
    SUCCESS(0,"成功"),
    PARAM_ERROR(1,"参数校验异常"),


    //中药模块错误码100开头



    //方剂模块错误码200开头



    //刷题模块错误码300开头
    ADD_ERROR(3001,"添加做题记录操作异常"),
    COLLECTION_ERROR(3002,"收藏题目操作异常");



    //用户中心模块错误码400开头



    //数据导入模块错误500开头
    ;


    private   Integer  code;
    private String msg;
    ResultEnum(Integer code,String msg){
        this.code =  code;
        this.msg =msg;
    }

}
